//防抖函数
let debouce= function(fn){
    let timer = null;
    return function(){
        clearTimeout(timer);
        timer = setInterval(function(){
            fn()
        },2000)
    }
}
export default debouce